package com.youdoneed.friends.application;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 统一全局配置。
 *
 * @author Ewing
 */
@Component
@ConfigurationProperties(prefix = "appConfig")
public class AppConfig {

    // 统一日期时间格式
    public static final String TIMEZONE = "GMT+8";
    public static final String DATE_FORMAT = "yyyy-MM-dd";
    public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    // 手机号格式
    public static final String PHONE_NO_PATTERN = "\\d{1,20}";

    public String faceRecognitionUrl;

    public String getFaceRecognitionUrl() {
        return faceRecognitionUrl;
    }

    public void setFaceRecognitionUrl(String faceRecognitionUrl) {
        this.faceRecognitionUrl = faceRecognitionUrl;
    }
}
